import request from '@/utils/request'
// 新增
export const addData = (data) => request.post('/company/department', data)
// 获取部门列表
export const getData = () => request.get('/company/department')
// 修改
export const putData = (data) => request.put(`/company/department/${data.id}`, data)
// 删除
export const deleteData = (id) => request.delete(`/company/department/${id}`)
// 查询
export const getDataId = (id) => request.get(`/company/department/${id}`)

